home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2171 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  857 b 

  1. Path: oxy.rust.net!usenet
  2. From: ebennett@rust.net
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Problem with program
  5. Date: Fri, 19 Jan 1996 03:56:30 GMT
  6. Organization: Rust Net - High Speed Internet in Detroit  810-642-2276
  7. Message-ID: <4dmq6l$jov@oxy.rust.net>
  8. References: <4dkr5u$ro7@hasle.sn.no>
  9. NNTP-Posting-Host: liv-13.rust.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. elvemo@sn.no (Rune Elvemo) wrote:
  13.  
  14. >Anyone who can figure out what is wrong with this program?
  15.  
  16. >I tried to compile it, but my compiler wouldn't.....
  17.  
  18. >Ex: It said that the prototype needed a semicolon, but it
  19. >don't.........
  20.  
  21. >/* Loadfile.c - loads a txt file, and shows it 
  22. >**
  23. >**
  24. >*/
  25.  
  26. >#include <stdio.h>
  27.  
  28. >struct Text
  29. >{
  30. >char *str;
  31. >struct Text *next;
  32. >}
  33.  
  34. > Stuff Deleted...
  35.  
  36. The error is misleading.  You need a semicolon after the closing brace
  37. of the struct Text declaration.
  38.  
  39. Earl
  40.  
  41.  
  42.  
  43.